extern int PSGlobal;